﻿<ui:View x:Class="Coolvis.Console.Theme.GreenSelectSolutionView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:ui="clr-namespace:CPPEI.Coolzon.UI;assembly=CPPEI.Coolzon.UI"
             mc:Ignorable="d" 
             Background="#1D1D1D"
         d:DesignWidth="1024" d:DesignHeight="600">
    <ui:View.Resources>
        <Image x:Key="image" Source="../Resources/Images/BtnSolutionNormal.jpg"></Image>
        <Style x:Key="s_btn" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <ContentPresenter Content="{TemplateBinding Content}"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </ui:View.Resources>
    <Grid>
        <Grid.Background>
            <ImageBrush ImageSource="../Resources/Images/grid_bg.jpg" TileMode="Tile" AlignmentX="Left" AlignmentY="Top" Viewport="0,0,6,6" ViewportUnits="Absolute"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="108"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Canvas Background="Transparent" Grid.Row="0" Width="967">
            <StackPanel Orientation="Horizontal" Height="109">
                <Image Source="../Resources/Images/logo.png" Margin="20,30,10,30" VerticalAlignment="Center"></Image>
                <TextBlock Text="全息数据可视化平台" Foreground="White" FontSize="48" VerticalAlignment="Center"/>
            </StackPanel>
            <TextBlock x:Name="tbFullscreen" Foreground="White" FontFamily="黑体" FontSize="24" Text="全屏" Visibility="Hidden" Canvas.Left="900" Canvas.Top="46" PreviewMouseLeftButtonDown="tbFullscreen_PreviewMouseLeftButtonDown" />
            
            <Button Name="_ctlBtnBack" Visibility="Hidden" Canvas.Left="780" Canvas.Top="46" Width="50" Height="25" Click="_ctlBtnBack_Click_1" Style="{StaticResource s_btn}">
                <TextBlock Text="返回" Foreground="White" FontFamily="黑体" FontSize="24" />
            </Button>
        </Canvas>
        <Grid Grid.Row="1" Width="1005" Height="345">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <ScrollViewer x:Name="scrollView" CanContentScroll="True" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" PanningMode="Both" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Grid.RowSpan="2">
                <StackPanel x:Name="wrapPanel" HorizontalAlignment="Center" Orientation="Horizontal" Background="Red">
                </StackPanel>
            </ScrollViewer>
            <Grid Grid.Row="0" Grid.Column="3" Background="#393d48" Margin="10,0,0,0">

                <Image Source="../Resources/Images/IconUser.png" Width="48" Height="48" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,10,0,0" />
                <StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,10">
                    <TextBlock Text="欢饮您" FontSize="14" Foreground="White" HorizontalAlignment="Right"/>
                    <TextBlock x:Name="tbAccountName" HorizontalAlignment="Right" Foreground="White" FontFamily="黑体" FontSize="28" Text="nimei" Canvas.Left="680" Canvas.Top="46" />
                </StackPanel>
            </Grid>
            <Grid Grid.Row="1" Grid.Column="3" Background="#393d48" Margin="10,10,0,0">
                <Image Source="../Resources/Images/IconExit.png" Width="48" Height="48" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,10,0,0" />
                <Border  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="Logout" PreviewMouseDown="Logout_PreviewMouseDown">
                    <TextBlock Text="注销" Foreground="White" FontFamily="黑体" FontSize="24" HorizontalAlignment="Right" VerticalAlignment="Bottom"  Margin="0,0,10,10" Cursor="Hand"/>
                </Border>
            </Grid>
            <StackPanel Name="_ctlPanelRetry" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Hidden" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4" Grid.RowSpan="2">
                <TextBlock Text="获取方案失败!" Foreground="White" FontSize="24" Margin="10"/>
                <Button Name="_ctlBtnRetry" Content="重试" Height="24" Width="75" Click="_ctlBtnRetry_Click"/>
            </StackPanel>
        </Grid>
    </Grid>

</ui:View>
